package com.lxz.bookmanager.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
public class LoginController {

    @RequestMapping({"/", "/index"})
    public String login(HttpSession session, Model model) {
        return "index";
    }
    @RequestMapping({"/register"})
    public String register(HttpSession session, Model model) {
        return "register";
    }

    @RequestMapping({"/toLoginPage"})
    public String toLoginPage(HttpSession session,Model model) {
        return "old";
    }


}
